<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>公众号管理</h2>
	</div>
	<form action="__SELF__" method="post" id="fo" class="form-horizontal">
		<div class="form-item">
			<label class="item-label">公众号<span class="check-tips">（公众号）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="gid" value="<?php echo $arr['gid']?>">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">appid<span class="check-tips">（appid）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="appid" value="<?php echo $arr['appid']?>">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">secret<span class="check-tips">（secret）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="secret" value="<?php echo $arr['secret']?>">
			</div>
		</div>

		<div class="form-item">
			<label class="item-label">token<span class="check-tips">（token）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="token" value="<?php echo $arr['token']?>">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">公众回复<span class="check-tips">（公众回复）</span></label>
			<div class="controls">
				<input type="text" class="text input-large" name="gzhf" value="<?php echo $arr['gzhf']?>">
			</div>
		</div>
		<div class="form-item">
			<input type="hidden" name="id" value="<?php echo $arr['id']?>">
			<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>

<block name="script">
	<script type="text/javascript">
		$('#submit').click(function(){
			$('#fo').submit();
		});
		// Think.setValue("type", {$info.type|default=0});
		// Think.setValue("group", {$info.group|default=0});
		//导航高亮
		$('.side-sub-menu').find('a[href="{:U('Wechat/index')}"]').closest('li').addClass('current');
	</script>
</block>
